package com.example.taobaounion.manager;

import com.example.taobaounion.presenter.impl.CategoryPagerPresenter;
import com.example.taobaounion.presenter.impl.HomePresenter;
import com.example.taobaounion.presenter.impl.OnSellPagePresenter;
import com.example.taobaounion.presenter.impl.SearchPresenter;
import com.example.taobaounion.presenter.impl.SelectPagePresenter;
import com.example.taobaounion.presenter.impl.TicketPresenter;

public class PresenterManager {
    private static final PresenterManager ourInstance = new PresenterManager();

    private final CategoryPagerPresenter mCategoryPagerPresenter;
    private final TicketPresenter mTicketPresenter;
    private final HomePresenter mHomePresenter;
    private final SelectPagePresenter mSelectPagePresenter;
    private final OnSellPagePresenter mOnSellPagePresenter;


    private final SearchPresenter mSearchPresenter;

    public static PresenterManager getInstance() {
        return ourInstance;
    }

    public CategoryPagerPresenter getCategoryPagerPresenter() {
        return mCategoryPagerPresenter;
    }

    public TicketPresenter getTicketPresenter() {
        return mTicketPresenter;
    }

    public HomePresenter getHomePresenter() {
        return mHomePresenter;
    }

    public SelectPagePresenter getSelectPagePresenter() {
        return mSelectPagePresenter;
    }

    public OnSellPagePresenter getOnSellPagePresenter() {
        return mOnSellPagePresenter;
    }

    public SearchPresenter getSearchPresenter() {
        return mSearchPresenter;
    }

    private PresenterManager() {
        mCategoryPagerPresenter = new CategoryPagerPresenter();
        mTicketPresenter = new TicketPresenter();
        mHomePresenter = new HomePresenter();
        mSelectPagePresenter = new SelectPagePresenter();
        mOnSellPagePresenter = new OnSellPagePresenter();
        mSearchPresenter = new SearchPresenter();
    }
}
